var e = require("../../../api.js"), a = getApp();

Page({
    data: {
        order: null,
        reduce: null,
        total: null,
        order_no: "",
        pay: !1
    },
    onLoad: function(e) {
        this.setData({
            order_no: e.order_no
        }), e.uid && a.shareCouponsMessage(e.uid);
    },
    intoRule: function(e) {
        wx.navigateTo({
            url: e.currentTarget.dataset.url
        });
    },
    onReady: function() {},
    onShow: function() {
        var r = this;
        a.request({
            url: e.order.order_cost,
            method: "post",
            data: {
                order_no: r.data.order_no
            },
            success: function(e) {
                1 == e.code && r.setData({
                    order: e.data
                });
            }
        });
    },
    onShareAppMessage: function() {
        return {
            title: a.shareAppMessage().title,
            imageUrl: a.shareAppMessage().imageUrl,
            desc: a.shareAppMessage().desc,
            path: a.shareAppMessage().path
        };
    }
});